package com.ruoyi.hospital.mapper;

import java.util.List;
import com.ruoyi.hospital.domain.Appointments;
import org.apache.ibatis.annotations.Mapper;

/**
 * 预约信息Mapper接口
 *
 * @author xiaozhao
 * @date 2025-07-04
 */

@Mapper
public interface AppointmentsMapper
{
    /**
     * 查询预约信息
     *
     * @param appointmentId 预约信息主键
     * @return 预约信息
     */
    public Appointments selectAppointmentsByAppointmentId(Long appointmentId);

    /**
     * 查询预约信息列表
     *
     * @param appointments 预约信息
     * @return 预约信息集合
     */
    public List<Appointments> selectAppointmentsList(Appointments appointments);

    /**
     * 新增预约信息
     *
     * @param appointments 预约信息
     * @return 结果
     */
    public int insertAppointments(Appointments appointments);

    /**
     * 修改预约信息
     *
     * @param appointments 预约信息
     * @return 结果
     */
    public int updateAppointments(Appointments appointments);

    /**
     * 删除预约信息
     *
     * @param appointmentId 预约信息主键
     * @return 结果
     */
    public int deleteAppointmentsByAppointmentId(Long appointmentId);

    /**
     * 批量删除预约信息
     *
     * @param appointmentIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAppointmentsByAppointmentIds(Long[] appointmentIds);


}
